<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AdminSettings.ascx.cs" Inherits="Controls_Event_AdminSettings" %>
<link rel="STYLESHEET" type="text/css" href="Styles/rich_calendar.css"></link>
<script type="text/javascript" src="Javascripts/rich_calendar/rich_calendar.js"></script>
<script type="text/javascript" src="Javascripts/rich_calendar/rc_lang_en.js"></script>
<script type="text/javascript" src="Javascripts/domready/domready.js"></script>
<div id="divJavascript" runat="server"></div>
<table class="general" cellpadding="0" cellspacing="0" >
    <tr>
        <td class="generaltd" style="padding-top: 5px" colspan="2" >
            <b><asp:Label ID="lblTitle" runat="server"></asp:Label></b>
            <asp:TextBox CssClass="textbox textboxMan" ID="txtTitle" MaxLength="100" Width="80%" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvTitle" runat="server" 
                ControlToValidate="txtTitle"
                Display="None"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="generaltd" style="padding-top: 5px" colspan="2">
            <b><asp:Label ID="lblCatagory" runat="server"></asp:Label></b>
            <asp:DropDownList ID="ddlCatagory" CssClass="ddl" runat="server"></asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td colspan="2" class="generaltd" >
            <fieldset>
               <legend><asp:Label ID="lblDescription" runat="server"></asp:Label></legend>
               <center>
                <asp:TextBox Width="95%" CssClass="textbox" MaxLength="1000" ID="txtDescription" runat="server" TextMode="MultiLine" Height="60px"></asp:TextBox>
                <br />&nbsp;
               </center>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td style="width: 50%; vertical-align: top; padding-top: 5px;" >
            <fieldset style="width: 98%;">
                <legend><asp:Label ID="lblAccessibility" runat="server"></asp:Label></legend>
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:RadioButtonList ID="rblAccess" CssClass="solid" runat="server">
                            </asp:RadioButtonList>
                        </td>
                        <td style="vertical-align: top" >
                            &nbsp;-&nbsp;<asp:Label ID="lblAccessCode" runat="server"></asp:Label><asp:TextBox ID="txtAccessCode" Width="50px" MaxLength="20" CssClass="textbox textboxMan" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvAccessCode" runat="server" 
                                            ControlToValidate="txtAccessCode"
                                            EnableClientScript="true"
                                            Display="None"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="padding-left: 10px">
                            <asp:CheckBoxList ID="cblAccessPublic" CssClass="solid" runat="server" >
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                </table> 
            </fieldset>
        </td>
        <td style="width: 50%; vertical-align: top; padding-top: 5px;">
            <fieldset style="width: 98%;">
                <legend><asp:Label ID="lblEndOn" runat="server"></asp:Label></legend>
                <table>
                    <tr>
                        <td><asp:RadioButton ID="rbFixed" GroupName="duedate" runat="server" Checked="true" Text="Fixed Date"></asp:RadioButton></td>
                        <td id="tdFixed">
                            <table class="general">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtDueDate" Width="75px" MaxLength="12" CssClass="textbox textboxMan" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvDueDate" runat="server" 
                                            ControlToValidate="txtDueDate"
                                            EnableClientScript="true"
                                            Display="None"></asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="rvDueDate" runat="server" 
                                            ControlToValidate="txtDueDate"
                                            Display="None"
                                            Type="Date"
                                            ></asp:RangeValidator>
                                    </td>
                                    <td><input id="btnShowCal" runat="server" type="button" style="background-image: url(Images/dj/cal.gif); width: 24px; height: 23px; background-color: Transparent; border: none 0px;" /></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td><asp:RadioButton ID="rbCount" GroupName="duedate" runat="server" Text="Maximum vote count"></asp:RadioButton></td>
                        <td>
                            <table class="general">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtMaxVoteCount" Width="75px" MaxLength="5" CssClass="textbox" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvMaxVoteCount" runat="server" 
                                            ControlToValidate="txtMaxVoteCount"
                                            EnableClientScript="true"
                                            Display="None"></asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="rvMaxVoteCount" runat="server" 
                                            ControlToValidate="txtMaxVoteCount"
                                            Display="None"
                                            Type="Integer"
                                            ></asp:RangeValidator>
                                    </td>
                                </tr>
                            </table>
                         </td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
</table>
<asp:ValidationSummary ID="vsAdmin" ShowMessageBox="true" ShowSummary="false" runat="server" />